package com.ct.application.order.convert;

import com.ct.application.order.model.vo.OrderDetailVO;
import com.ct.application.order.model.vo.OrderVO;
import com.ct.order.orm.Order;
import com.ct.order.orm.OrderDetail;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface OrderConvert {

    List<OrderVO> toOrderVOList(List<Order> orderList);

    List<OrderDetailVO> toOrderDetailVOList(List<OrderDetail> orderDetailList);
}
